<template>
    <ShopCartHeaderCom/>
    <ShopCartListCom v-if="shopCart.length===0"/>
    <ShopCartListYouShangPinCom v-else/>
</template>

<script>
    import ShopCartHeaderCom from "../components/ShopCart/ShopCartHeaderCom.vue";
    import ShopCartListCom from "../components/ShopCart/ShopCartListCom.vue";
    import ShopCartListYouShangPinCom from "../components/ShopCart/ShopCartListYouShangPinCom.vue";


    export default {
        name: "ShopCartView.vue",
        data(){
            return{
                shopCart:this.$store.state.shopCart
            }
        },
        components:{
            ShopCartHeaderCom,
            ShopCartListCom,
            ShopCartListYouShangPinCom
        }
    }
</script>

<style scoped>

</style>